package com.ruoyi.wechat.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租赁对象 c_order
 * 
 * @author 李硕
 * @date 2024-12-29
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id（主键） */
    private String orderId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 营地id */
    @Excel(name = "营地id")
    private String campId;

    /** 总金额 */
    @Excel(name = "总金额")
    private Long total;

    /** 租赁时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "租赁时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 二维码qrcode */
    @Excel(name = "二维码qrcode")
    private String qrcode;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;


    @ApiModelProperty(value = "订单详情数组")
    private List<OrderDetail> orderDetails;

    public List<OrderDetail> getOrderDetails() {
        return orderDetails;
    }

    public void setOrderDetails(List<OrderDetail> orderDetails) {
        this.orderDetails = orderDetails;
    }

    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setCampId(String campId) 
    {
        this.campId = campId;
    }

    public String getCampId() 
    {
        return campId;
    }
    public void setTotal(Long total) 
    {
        this.total = total;
    }

    public Long getTotal() 
    {
        return total;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setQrcode(String qrcode) 
    {
        this.qrcode = qrcode;
    }

    public String getQrcode() 
    {
        return qrcode;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("campId", getCampId())
            .append("total", getTotal())
            .append("orderTime", getOrderTime())
            .append("qrcode", getQrcode())
            .append("status", getStatus())
            .toString();
    }
}
